<template>
  <div>
    <button @click="getStudent">发送请求</button>
  </div>
</template>

<script>
  import axios from 'axios'

  let instance = axios.create({
    baseURL: '/api'
  })

  export default {
    name: 'MockJsDemo',
    methods: {
      getStudent() {
        var parameter = { name: 'kiwipeach' }
        instance({
          url: '/student/info',
          method: 'get',
          data: parameter
        }).then(function(res) {
        })
      }
    }
  }
</script>

<style scoped>

</style>